package com.qf.util;

import java.io.File;
import java.util.Map;

/*
杨威
2021/9/17
14:59
*/
public class DownLoadUtil {
    public static void listFiles(File file,Map<String,String> fileNames){
        File[] files = file.listFiles();
        for (File file1 : files) {
            if(file1.isFile()){
                String name = file1.getName();
                String fileName = name.substring(name.indexOf("_")+1);
                fileNames.put(name,fileName);
            }else {
                listFiles(file1,fileNames);
            }
        }
    }
}
